package com.itheima.info.manager.entry;

import com.itheima.info.manager.controller.StudentController;

import java.util.Scanner;

/*
程序主入口
 */
public class EntryManager {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        StudentController stucon = new StudentController();

        String choice;
        while(true){
        System.out.println("--------欢迎来到黑马信息管理系统--------");
        System.out.println("1.学生管理系统");
        System.out.println("2.老师管理系统");
        System.out.println("3.退出");
        System.out.println("请输入您的选择:");
        choice = sc.next();

        switch(choice) {
            case "1":
                stucon.start();
                break;
            case "2":
                //teacon.start();
                break;
            case "3":
                System.out.println("感谢您的使用,再见");
                System.exit(0);
                break;
            default:
                System.out.println("您的输入有误,请重新输入");
                break;
        }


        }

    }
}
